package wwk.common.util;

import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.provider.ContactsContract;

public class IntentUtil 
{
	static public void startContactViewActivity(Context context,int contactId)
	{
		Uri personUri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,contactId);
		Intent intent = new Intent();
		intent.setAction(Intent.ACTION_VIEW);
		intent.setData(personUri);
		context.startActivity(intent);
	}
}
